home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Graphics / FlashMandel / Sources / Modules / FlashMandel.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-12  |  5.1 KB  |  209 lines

  1. #include "compilerspecific.h"
  2.  
  3. #define Lib_Version 39L
  4.  
  5. #define MIN_ITERATIONS 31
  6. #define MAX_ALLOWED_ITERATIONS 32767
  7.  
  8. #define MINLIMIT 2
  9. #define RESERVED_PENS 4L
  10.  
  11. #define CPU_000  0x1
  12. #define CPU_010  0x2
  13. #define CPU_020  0x4
  14. #define CPU_030  0x8
  15. #define CPU_040  0x10
  16. #define CPU_060  0x20
  17. #define FPU_000  0x100   /* No 68k Fpu */
  18. #define FPU_881  0x200
  19. #define FPU_882  0x400
  20. #define FPU_040  0x800
  21. #define CPU_603  0x1000
  22. #define CPU_603e 0x2000
  23. #define CPU_604  0x4000
  24. #define CPU_604e 0x8000
  25. #define CPU_620  0x10000
  26.  
  27. #ifndef AFF_68060
  28. #define AFF_68060 1L << 7
  29. #endif
  30.  
  31.  
  32. #define INIT_DEF_RMIN      -2.0
  33. #define INIT_DEF_RMAX      +2.0
  34. #define INIT_DEF_IMIN      -1.5
  35. #define INIT_DEF_IMAX      +1.5
  36. #define INIT_DEF_RMINSTR   "-2.0"
  37. #define INIT_DEF_RMAXSTR   "+2.0"
  38. #define INIT_DEF_IMINSTR   "-1.5"
  39. #define INIT_DEF_IMAXSTR   "+1.5"
  40. #define INIT_DEF_JKRE      -0.72
  41. #define INIT_DEF_JKIM      -0.26
  42. #define INIT_DEF_JKRESTR   "-0.72"
  43. #define INIT_DEF_JKIMSTR   "-0.26"
  44.  
  45. #define DEF_WIDTH        640
  46. #define DEF_HEIGHT       480
  47. #define DEF_DEPTH        4
  48. #define DEF_MONITOR      0x50011000
  49. #define DEF_MONITORSTR  "0x50011000"
  50. #define DEF_USERNAMESTR "Unknown"
  51. #define DEF_FONTNAMESTR "topaz.font\0"
  52. #define DEF_FONTSIZE     8
  53. #define DEF_STARTPRI    -3
  54.  
  55. #define MIN_WIDTH  640
  56. #define MIN_HEIGHT 480
  57. #define MAX_WIDTH  16368
  58. #define MAX_HEIGHT 16384
  59. #define MIN_DEPTH  3
  60. #define MAX_DEPTH  8
  61.  
  62. #define MAX_FONTSIZE 24
  63. #define MIN_FONTSIZE 8
  64.  
  65. #define MAX_FILELEN 30
  66. #define MAX_DIRLEN  230
  67. #define MAX_PATHLEN 260
  68. #define BARLEN      80
  69.  
  70. #define TOBLACK   1
  71. #define FROMBLACK 0
  72.  
  73. #define RAW_ESC      0x045
  74. #define VAN_ESC      0x01B
  75. #define TAB          0x042
  76. #define HELP         0x05f
  77.  
  78. #define BLACK      (0)
  79. #define LIGHT_GREY (2)
  80. #define WHITE      (1)
  81. #define DARK_GREY  (3)
  82.  
  83. #define POINTS       4
  84. #define PAIRS        5
  85.  
  86. #define BLINKTIMES   5L
  87.  
  88. #define ONESEC        (50L * 1L)
  89. #define TWOSECS       (50L * 2L) /* 2 secondi */
  90.  
  91. #define SHIFTRIGHT   FALSE
  92. #define SHIFTLEFT    TRUE
  93.  
  94. #define INITIALZOOM  18
  95.  
  96. #define CLEAR_POINTER 0
  97. #define BUSY_POINTER  1
  98. #define ZOOM_POINTER  2
  99.  
  100. #define ZPW          15
  101. #define ZPH          15
  102. #define ZPXO         -8
  103. #define ZPYO         -7
  104.  
  105. #define MAXCHARS     20
  106.  
  107. #define ACCEPT       (1)
  108. #define RATIO        (2)
  109. #define RESET        (3)
  110. #define CANCEL       (4)
  111. #define KEEP         (5)
  112.  
  113. #define WMASK  0x1
  114. #define FMASK  0x2
  115. #define VMASK  0x4
  116. #define SMASK  0x8
  117. #define BMASK  0x10
  118. #define ZMASK  0x20
  119. #define TMASK  0x40
  120. #define MMASK  0x80
  121. #define LMASK  0x100
  122. #define PMASK  0x200
  123.  
  124. #define LOADPICTURE_MSG 0x1
  125. #define SAVEPICTURE_MSG 0x2
  126. #define DUMP_MSG        0x4
  127. #define REDRAW_MSG      0x8
  128. #define UNDO_MSG        0x10
  129. #define DRAW_MSG        0x20
  130. #define PREVIEW_MSG     0x40
  131. #define NEWDISPLAY_MSG  0x80
  132. #define STOP_MSG        0x100
  133. #define EXIT_MSG        0x200
  134. #define COORDS_MSG      0x400
  135. #define ITER_MSG        0x800
  136. #define ABOUT_MSG       0x1000
  137. #define TITLE_MSG       0x2000
  138. #define TIME_MSG        0x4000
  139. #define PALETTE_MSG     0x8000
  140. #define CYCLERIGHT_MSG  0x10000
  141. #define CYCLELEFT_MSG   0x20000
  142. #define DELAY_MSG       0x40000
  143. #define COLOR_MSG       0x80000
  144. #define LOADPALETTE_MSG 0x100000
  145. #define SAVEPALETTE_MSG 0x200000
  146. #define FONTREQ_MSG     0x400000
  147. #define SHOWGUIDE_MSG   0x800000
  148. #define SYSINFO_MSG     0x1000000
  149.  
  150. #define PICTURES_DRAWER 0
  151. #define PALETTES_DRAWER 1
  152.  
  153. #define IDCMP_STANDARD  IDCMP_CLOSEWINDOW|IDCMP_RAWKEY|IDCMP_MOUSEBUTTONS|IDCMP_MOUSEMOVE|IDCMP_MENUPICK
  154.  
  155. #define WFLG_STANDARD WFLG_ACTIVATE|WFLG_BACKDROP|WFLG_NOCAREREFRESH|WFLG_SMART_REFRESH|WFLG_BORDERLESS|WFLG_REPORTMOUSE|WFLG_NEWLOOKMENUS
  156.  
  157. #define MODE_ID_MASK (LACE|HIRES|HAM|EXTRA_HALFBRITE)
  158.  
  159. #define SHOWGUIDECOMMAND "Run >NIL: SYS:Utilities/MultiView FlashMandel:Docs/FlashMandel.guide"
  160. #define ASSIGNCURRENTDIR "Assign FLASHMANDEL: \"\""
  161. #define ASSIGNREMOVE     "Assign FLASHMANDEL: remove"
  162.  
  163. #define VERSION  "FlashMandelPPC 1.2 "
  164. #define AUTHOR   "Dino Papararo"
  165. #define COPYRIGHT_DATE "©1996-2001"
  166. #define ADDRESS  "Via Manzoni, 184\n  80123 Napoli\n  Italia"
  167. #define EMAIL    "E-Mail address:\n  DinoP@IName.Com\n\n"
  168.  
  169. #ifdef  __SASC
  170. #define DATE     __AMIGADATE__
  171. #else
  172. #define DATE     __DATE__
  173. #endif
  174.  
  175. #define TITLE_BIT    (1L << 10)
  176.  
  177. #define FOUR_BIT     (1L << 15)
  178. #define LINEAR_BIT   (1L << 16)
  179. #define REPEATED_BIT (1L << 17)
  180. #define LOG_BIT      (1L << 18)
  181. #define SQUARE_BIT   (1L << 19)
  182. #define ONE_BIT      (1L << 20)
  183. #define TWO_BIT      (1L << 21)
  184. #define THREE_BIT    (1L << 22)
  185.  
  186. #define FIXED_BIT    (1L << 23)
  187. #define REAL_BIT     (1L << 24)
  188.  
  189. #define MC68K_BIT    (1L << 25)
  190. #define PPC_BIT      (1L << 26)
  191.  
  192. #define NEWTON_BIT   (1L << 27)
  193. #define JULIA_BIT    (1L << 28)
  194. #define MANDEL_BIT   (1L << 29)
  195. #define LYAPUNOV_BIT (1L << 30)
  196.  
  197. #define ID_MAND MAKE_ID ('M','A','N','D')
  198.  
  199. typedef long double LDouble;
  200.  
  201. struct MandelChunk { LONG LeftEdge,TopEdge,Width,Height;
  202.                      ULONG Iterations,Colors,Modulo,Flags;
  203.                      ULONG Reserved_Integer [6];
  204.                      LDouble RMin,RMax,IMin,IMax;
  205.                      LDouble JKre,JKim;
  206.                      LDouble Reserved_Real [6];                   
  207.                    };
  208.  
  209. TEXT VERSION_STRING [] = "\0$VER: " VERSION " " COPYRIGHT_DATE " by " AUTHOR " compiled in " DATE "\n\0";